/*
 * pieChart.fx
 *
 * Created on 23-dic-2009, 16:05:58
 */

package ProgramSamples.Graphics;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.chart.*;

def pieChart = PieChart {
    title: "Sample Pie"
    data: [
        PieChart.Data { label: "Apples" value: 34  },
        PieChart.Data { label: "Oranges" value: 27 },
        PieChart.Data { label: "Bananas" value: 16 },
        PieChart.Data { label: "Grapes" value: 50 },
        PieChart.Data { label: "Cherries" value: 6 },
        PieChart.Data { label: "Strewberry" value: 5 },
        PieChart.Data { label: "Raspberry" value: 7 }
    ]
}

Stage {
    title: "Pie Chart"
    scene: Scene{
	    width: 540
            height: 410
            content: pieChart
     } //Scene
}//Stage